<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<h3>Login Form</h3>
<FONT color="blue">
	<h6>User Name="UserName" and password="password"</h6>
</FONT>
<form:form action="userForm" commandName="user">
	<table>
		<tr>
			<td>User Name:<FONT color="red"><form:errors path="Name" /></FONT></td>
		</tr>
		<tr>
			<td><form:input path="Name" /></td>
		</tr>
		<tr>
			<td>User Surname:<FONT color="red"><form:errors path="Surname" /></FONT></td>
		</tr>
		<tr>
			<td><form:input path="Surname" /></td>
		</tr>
		<tr>
			<td>User Login:<FONT color="red"><form:errors path="Login" /></FONT></td>
		</tr>
		<tr>
			<td><form:input path="Login" /></td>
		</tr>
		<tr>
			<td>Password:<FONT color="red"><form:errors path="Password" /></FONT></td>
		</tr>
		<tr>
			<td><form:password path="Password" /></td>
		</tr>
		<tr>
			<td>Role:<FONT color="red"><form:errors path="Role" /></FONT></td>
		</tr>
		<tr>
			<td><form:select path="Role">
					<form:options items="${rolesList}" itemLabel="roleName" itemValue="id" />
				</form:select></td>
		</tr>
		<tr>
			<td>User Email:<FONT color="red"><form:errors path="Email" /></FONT></td>
		</tr>
		<tr>
			<td><form:input path="Email" /></td>
		</tr>
		<tr>
			<td>User Phone:<FONT color="red"><form:errors path="Phone" /></FONT></td>
		</tr>
		<tr>
			<td><form:input path="Phone" /></td>
		</tr>
		<tr>
			<td><input type="submit" value="Submit" /></td>
		</tr>
	</table>
</form:form>
